package io.gitee.pkmer;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;

import java.io.File;
import java.io.IOException;

/**
 * @author <a href="mailto:1193094618@qq.com">pkmer</a>
 * <br>
 * <a href = "https://gitee.com/developeros/videos-online">Code Repository</a>
 * At 2024/9/8
 */
public class LockMain {
    public static void main(String[] args) throws IOException {
        Config config = Config.fromYAML(new File("config-file.yaml"));
        RedissonClient redisson = Redisson.create(config);

        redisson.getBucket("name").set("pkmer");

        System.out.println(redisson.getBucket("name").get());

        redisson.shutdown();
    }
}
